The Scent of a Smell: An Extensive Comparison between Textual and Structural Smells

نویسندگان

  • Fabio Palomba
  • Annibale Panichella
  • Andy Zaidman
  • Rocco Oliveto
  • Andrea De Lucia
چکیده

Code smells are symptoms of poor design or implementation choices that have a negative effect on several aspects of software maintenance and evolution, such as program comprehension or changeand fault-proneness. This is why researchers have spent a lot of effort on devising methods that help developers to automatically detect them in source code. Almost all the techniques presented in literature are based on the analysis of structural properties extracted from source code, although alternative sources of information (e.g., textual analysis) for code smell detection have also been recently investigated. Nevertheless, some studies have indicated that code smells detected by existing tools based on the analysis of structural properties are generally ignored (and thus not refactored) by the developers. In this paper, we aim at understanding whether code smells detected using textual analysis are perceived and refactored by developers in the same or different way than code smells detected through structural analysis. To this aim, we set up two different experiments. We have first carried out a software repository mining study to analyze how developers act on textually or structurally detected code smells. Subsequently, we have conducted a user study with industrial developers and quality experts in order to qualitatively analyze how they perceive code smells identified using the two different sources of information. Results indicate that textually detected code smells are easier to identify and for this reason they are considered easier to refactor with respect to code smells detected using structural properties. On the other hand, the latter are often perceived as more severe, but more difficult to exactly identify and remove.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Can Ambient Scent Enhance the Nightlife Experience?

Ever since smoking was prohibited in restaurants, bars, and clubs, undesirable smells that were previously masked by cigarette smoke became noticeable. This opens up opportunities to improve the dance club environment by introducing pleasant ambient scents that mask the unwanted odors and to allow competing clubs to differentiate themselves. A field study was conducted at three dance clubs usin...

متن کامل

Investigating the Role of Code Smells in Preventive Maintenance

The quest for improving the software quality has given rise to various studies which focus on the enhancement of the quality of software through various processes. Code smells, which are indicators of the software quality have not been put to an extensive study for as to determine their role in the prediction of defects in the software. This study aims to investigate the role of code smells in ...

متن کامل

The Effect of Stimulating and Soothing Smells on Heart Rate and Memory

This study was performed to investigate the effect of smell on heart rate and short-term memory. Lemon and lavender were used as stimulating and soothing scents respectively, in order to determine if these odors increased or decreased heart rate and correspondingly improved or impaired memory. Sixty-seven participants from California State University, Sacramento were divided into three groups t...

متن کامل

The use of bloodhounds in determining the impact of genetics and the environment on the expression of human odortype.

Bloodhounds are used to trail fleeing felons and missing persons. In order to start a trail, the dog must be presented with a person's scent. There are many hypotheses on what a bloodhound smells while trailing. The present study attempts to identify whether human scent is genetic, and if it is influenced by one's environment. Bloodhounds trained in human scent discrimination were used to diffe...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2017